package com.qf.kafkaconsumer.service.impl;

import com.qf.kafkaconsumer.mapper.IUserMapper;
import com.qf.kafkaconsumer.service.IUserService;
import com.qf.kafkapojo.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author q
 * @version V1.0
 * @date 2021/12/25
 **/
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserMapper userMapper;

    @Override
    public Integer createUser(User user) {
        return userMapper.insert(user);
    }

}
